import request from '@/utils/request'

// 查询账套管理列表
export function listAccountSet(query) {
  return request({
    url: '/finance/AccountSet/list',
    method: 'get',
    params: query
  })
}

// 查询账套管理详细
export function getAccountSet(accountId) {
  return request({
    url: '/finance/AccountSet/' + accountId,
    method: 'get'
  })
}

// 新增账套管理
export function addAccountSet(data) {
  return request({
    url: '/finance/AccountSet',
    method: 'post',
    data: data
  })
}

// 修改账套管理
export function updateAccountSet(data) {
  return request({
    url: '/finance/AccountSet',
    method: 'put',
    data: data
  })
}

// 删除账套管理
export function delAccountSet(accountId) {
  return request({
    url: '/finance/AccountSet/' + accountId,
    method: 'delete'
  })
}
export function getindustry() {
  return request({
    url: '/finance/industry/getindustry',
    method: 'get'
  })
}

export function listAccountSetAll() {
  return request({
    url: '/finance/AccountSet/listAcountSetAll',
    method: 'get'
  })
}

export function checkDefaultAccountSet(accountId) {
  return request({
    url: '/finance/AccountSet/checkDefaultAccountSet/'+accountId,
    method: 'put'
  })
}
